home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _ProgressBarStyle.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  46 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ProgressBarSkin;
  5.    import mx.skins.halo.ProgressIndeterminateSkin;
  6.    import mx.skins.halo.ProgressMaskSkin;
  7.    import mx.skins.halo.ProgressTrackSkin;
  8.    import mx.styles.CSSStyleDeclaration;
  9.    import mx.styles.StyleManager;
  10.    
  11.    public class _ProgressBarStyle
  12.    {
  13.        
  14.       
  15.       public function _ProgressBarStyle()
  16.       {
  17.          super();
  18.       }
  19.       
  20.       public static function init(param1:IFlexModuleFactory) : void
  21.       {
  22.          var fbs:IFlexModuleFactory = param1;
  23.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ProgressBar");
  24.          if(!style)
  25.          {
  26.             style = new CSSStyleDeclaration();
  27.             StyleManager.setStyleDeclaration("ProgressBar",style,false);
  28.          }
  29.          if(style.defaultFactory == null)
  30.          {
  31.             style.defaultFactory = function():void
  32.             {
  33.                this.trackColors = [15198183,16777215];
  34.                this.fontWeight = "bold";
  35.                this.maskSkin = ProgressMaskSkin;
  36.                this.leading = 0;
  37.                this.trackSkin = ProgressTrackSkin;
  38.                this.indeterminateMoveInterval = 28;
  39.                this.barSkin = ProgressBarSkin;
  40.                this.indeterminateSkin = ProgressIndeterminateSkin;
  41.             };
  42.          }
  43.       }
  44.    }
  45. }
  46.